package cn.wen.javax.net.ftp;

import it.sauronsoftware.ftp4j.FTPDataTransferListener;

public class MyTransferListener implements FTPDataTransferListener {

    // private int length;

    @Override
    public void started() {
	// System.out.println("FTP开始传输。");
    }

    @Override
    public void transferred(int length) {
	// this.length += length;
	// System.out.println("FTP正在传输：" + length + " 字节！");
    }

    @Override
    public void completed() {
	// System.out.println("FTP完成传输：" + this.length + " 字节。");
    }

    @Override
    public void aborted() {
	System.out.println("FTP传输终结。");
    }

    @Override
    public void failed() {
	System.out.println("FTP传输终结。");
    }

}
